package eclipse.lib.graphics.shaders;

public class GLTriadShader 
{
	private GLColor[] color = new GLColor[3];
	public void setColor(int pIndex, GLColor color)	
	{
		this.color[pIndex] = color; 
	}
	public void setColor(GLColor color1, GLColor color2, GLColor color3)
	{
		this.color[0] = color1;
		this.color[1] = color2;
		this.color[2] = color3;
	}
	public void setColor(GLColor color)
	{
		for(int i = 0; i < 3; i++)
			this.color[i] = color;
	}
	public GLColor getColor(int pIndex)
	{
		return color[pIndex];
	}
}
